package cn.edu.scau.cmi.limingben.abstract_factory;

public abstract class Abstractfactory {
	public static Abstractfactory getCompany(String s) {
		switch(s) {
		case "PICC":
			return new PICC();
		case "PingAn":
			return new PingAn();
		}
		return null;
	}
	public String createaccident() {
		return new Accident().list();
	}
	public String createcar() {
		return new Car().list();
	}
	public String createdriver() {
		return new Driver().list();
	}
	public String createpeople() {
		return new People().list();
	}
	public String create(String s) {
		return null;
	}
}
